package cn.edu.scau.cmi.wujiacheng.simpleFactoryMethod;

import cn.edu.scau.cmi.wujiacheng.domain.*;

public class MeatFactory {
	
	public static Meat produce(String option)
	{
		Meat policy = null;
		if(option.compareTo("Pork") == 0)
			policy = new Pork();
		else if(option.compareTo("Beef") == 0)
			policy = new Beef();
		else if(option.compareTo("Chicken") == 0)
			policy = new Chicken();
		return policy;
	}

}
